/*
 * @Author: ls
 * @Date: 2021-11-19 13:10:36
 * @LastEditTime: 2021-11-19 13:48:44
 * @LastEditors: ls
 * @Description: 导出贝塞尔曲线
 * @FilePath: \BezierEditor-master\assets\Script\ExportBezier.js
 */

cc.Class({
	extends: cc.Component,

	properties: {
		status: false,
	},

	onLoad() {
		this.node.on(cc.Node.EventType.MOUSE_DOWN, this._mouseDown, this);
	},

	_mouseDown(mouseDown) {
		if (this.status) return;

		this.status = true;
		const bezier = require('Bezier');
		bezier.exportBezier();
		this.status = false;
	},

	// update (dt) {},
});
